#include<stdio.h>
void init(int arr[],int n)
{
	int i;
	for (i = 0; i < n; i++)
	{
		arr[i] = 0;
	}
}
print(int arr[], int n)
{
	int i;
	for (i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}
void reverse(int arr[], int n)
{
	int left = 0;
	int right = n - 1;
	int t;
	while (left < right)
	{
		t = arr[left];
		arr[left] = arr[right];
		arr[right] = t;
		left++;
		right--;
	}
}
int main()
{
	int arr[10] ;
	init(arr,10);
	print(arr,10);
	reverse(arr,10);
	int i;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}